package patrol.mobile.com.mobilepatrol.activity;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.adapter.TestZzmAdapter;
import patrol.mobile.com.mobilepatrol.utils.CommonUtil;

/**
 * Created by z on 2018/9/3.
 * Des:
 */

public class TextActivtyByZzm extends BaseActivity {
    RecyclerView mTestRecyclerView;

    @Override
    protected int attachLayoutRes() {
        return R.layout.activity_zzm;
    }

    @Override
    public void setListener() {

    }

    @Override
    public void initTitle() {
        iv_back.setImageResource(R.mipmap.up_white);
        iv_back.setVisibility(View.VISIBLE);
        iv_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                CommonUtil.exitActivityAndBackAnim(TextActivtyByZzm.this, true);
            }
        });
        tv_center_title.setVisibility(View.VISIBLE);
        tv_center_title.setText(getResources().getString(R.string.title_jixiaohuizong_));
    }

    @Override
    public void initData() {
        mTestRecyclerView = findViewById(R.id.mTestRecyclerView_m);
        mTestRecyclerView.setLayoutManager(new LinearLayoutManager(this));
        mTestRecyclerView.setAdapter(new TestZzmAdapter());
    }
}
